# Maintainer:
# Contributor: Simo Leone <simo@archlinux.org>
# Contributor: Rouslan Solomakhin <rouslan@localnet.com>

pkgname=aspell-ru
pkgver=0.99f7
pkgrel=8
pkgdesc="Russian dictionary for aspell"
arch=('loong64' 'x86_64') #We cannot use 'any' see FS#22443
url="http://aspell.net/"
license=('custom')
depends=('aspell')
source=(ftp://ftp.gnu.org/gnu/aspell/dict/ru/aspell6-ru-$pkgver-1.tar.bz2)
sha512sums=('789fe15f5502b54008a41f2afb5635dcb7bb0a36e61b300ee48b2429c339793f5c4808d6063f13f1f8455ce251912433890e7d01ca59d8b0924ecd2987ceb430')

build() {
  cd aspell6-ru-$pkgver-1
  ./configure
  make
}

package() {
  cd aspell6-ru-$pkgver-1
  make DESTDIR="$pkgdir" install

  install -D -m644 Copyright "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
